{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "7847672f",
   "metadata": {},
   "source": [
    "## 个人课程表"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "da206dda",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "现在的时间是： 2021/10/10 15:16 Sunday\n",
      "请输入要查询的星期:1\n",
      "请输入需要查询的时间(省略中间字符，只要输入完整的时间值)：1518\n",
      " 现在是 定向越野 的上课时间\n"
     ]
    }
   ],
   "source": [
    "# week02 课程表练习\n",
    "import time\n",
    "now_time1 = time.strftime(\"%Y/%m/%d\")\n",
    "now_time2 = time.strftime(\"%H:%M\")\n",
    "now_time3 = time.strftime(\"%A\")\n",
    "print(\"现在的时间是：\",now_time1,now_time2,now_time3)\n",
    "\n",
    "weekday=int(input(\"请输入要查询的星期:\")) \n",
    "classtime=int(input(\"请输入需要查询的时间(省略中间字符，只要输入完整的时间值)：\"))\n",
    "if weekday == 1 :\n",
    "    if 945 < classtime < 1200 :\n",
    "        print(\"现在是 python语言 的上课时间\")\n",
    "    elif 1430 < classtime < 1555 :\n",
    "        print(\" 现在是 定向越野 的上课时间\")\n",
    "    else:\n",
    "        print(\"现在没有课程安排\")\n",
    "elif weekday == 2 :\n",
    "    if 1610 < classtime <1735:\n",
    "        print(\"现在是 大学英语的上课时间\")\n",
    "    else:\n",
    "        print(\"没有课程安排\")\n",
    "elif weekday == 3 :\n",
    "    if 800 < classtime < 930:\n",
    "        print(\"现在是 毛泽东思想和中国特色社会主义理论体系概论实践 的上课时间\")\n",
    "    elif 945 < classtime < 1200:\n",
    "        print(\"现在是 毛泽东思想和中国特色社会主义理论体系概论 的上课时间\")\n",
    "    else:\n",
    "        print(\"该时间没有课程安排\")\n",
    "elif weekday == 4 :\n",
    "    if 1430 < classtime < 1555:\n",
    "        print(\"现在是 大学英语 的上课时间\")\n",
    "    elif 1610 < classtime < 1735:\n",
    "        print(\"现在是 资本市场与企业融资 的上课时间\")\n",
    "    else:\n",
    "        print(\"该时间没有课程安排\")\n",
    "elif weekday == 5 :\n",
    "    if 800 < classtime < 930:\n",
    "        print(\"现在是 AI 的上课时间\")\n",
    "    elif 945 < classtime < 1200:\n",
    "        print(\"现在是 网站运营与管理 的上课时间\")\n",
    "    \n",
    "    else:\n",
    "        print(\"该时间没有课程安排\")\n",
    "else:\n",
    "    print(\"周末训练时间\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "5b6bd5d3",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
